/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package extraidados;

import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;


/**
 *
 * @author antonio
 */
public class Extraidados {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {
         String endereco = new String ("c:\\users/Igor/Documents/fileProjeto.xml");
         String string1 = new String("PL");
         String string2 = new String("RESUMO");
         Dados data = new Dados();
         String content = new String (); 
         System.out.println(data.extrai(string1,string2,1,endereco));
         String string3 = new String("LINK");
         System.out.println(data.extrai(string1,string3,1,endereco));
         String string4 = new String("KEYWORD");
         System.out.println(data.extrai(string1,string4,1,endereco));
         System.out.println(data.extrai(string1,string2,1,endereco));
         
    }
}
